package com.pet.pet06cart.feign;

import com.pet.pojo.Item;
import com.pet.vo.SysResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "pet04-itemservice",contextId = "remoteItemService")
public interface RemoteItemService {
    @GetMapping("/item/getItemById/{itemId}")
    Item getItemById(@PathVariable("itemId") Integer itemId);
}
